<?php 

header("Content-type: text/html; charset=utf-8");

include_once './C.class.php';

include_once './ku1.class.php';

$obj = M('stu');

// $res = $obj->query('select * from stu');

// var_dump($res);

$data['name']='小明';
$data['age']='24';

$res = $obj->add($data);

if ($res) {
	echo "成功";
}else{
	echo $obj->error();
}




 ?>